// *Author：jxx
// *Contact：283591387@qq.com
// *代码由框架生成,任何更改都可能导致被代码生成器覆盖
export default function(){
    const table = {
        key: 'DailId',
        footer: "Foots",
        cnName: '每日计划',
        name: 'DailyPlan',
        url: "/DailyPlan/",
        sortName: "DailId"
    };
    const tableName = table.name;
    const tableCNName = table.cnName;
    const newTabEdit = false;
    const key = table.key;
    const editFormFields = {"PlanCode":"","OrderCode":"","Line":"","TargetTime":"","Yield":"","Actual":"","Defective":"","PassRate":"","ActualTake":"","Team":"","MorningshiftStarttim":"","MorningshiftEndtime":"","FirstmorningShiftStarttime":"","FirstmorningShiftEndtime":"","MiddleShiftStartTime":"","MiddleShiftEndTime":"","FirstmiddleShiftStartTim":"","FirstmiddleShiftEndTime":"","EveningShiftStartTime":"","EveningShiftEndTime":"","FirsteveningShiftStartTime":"","FirsteveningShiftEndTime":"","CalibratedTimePerPiece":"","ActualTimePerPiece":""};
    const editFormOptions = [[{"title":"计划编码","required":true,"field":"PlanCode","type":"text","readonly":true}],
                              [{"dataKey":"订单编码","data":[],"title":"订单编码","required":true,"field":"OrderCode","type":"select"}],
                              [{"dataKey":"工艺线路","data":[],"title":"工艺线路","required":true,"field":"Line","type":"select"}],
                              [{"title":"计划目标日期","required":true,"field":"TargetTime","type":"datetime"}],
                              [{"title":"当日计划产量","required":true,"field":"Yield","type":"text"}],
                              [{"title":"当日实际产量","required":true,"field":"Actual","type":"text"}],
                              [{"title":"日次品数量","required":true,"field":"Defective","type":"text"}],
                              [{"title":"一次通过率","required":true,"field":"PassRate","type":"text"}],
                              [{"title":"每件实际耗时","required":true,"field":"ActualTake","type":"text"}],
                              [{"dataKey":"班组","data":[],"title":"班组","required":true,"field":"Team","type":"select"}],
                              [{"title":"早班开始时间","field":"MorningshiftStarttim","type":"datetime","required":true,}],
                              [{"title":"早班结束时间","field":"MorningshiftEndtime","type":"datetime","required":true,}],
                              [{"title":"早班 1 开始时间","field":"FirstmorningShiftStarttime","type":"datetime","required":true,}],
                              [{"title":"早班 1 结束时间","field":"FirstmorningShiftEndtime","type":"datetime","required":true,}],
                              [{"title":"中班开始时间","field":"MiddleShiftStartTime","type":"datetime","required":true,}],
                              [{"title":"中班结束时间","field":"MiddleShiftEndTime","type":"datetime","required":true,}],
                              [{"title":"中班 1 开始时间","field":"FirstmiddleShiftStartTim","type":"datetime","required":true,}],
                              [{"title":"中班 1 结束时间","field":"FirstmiddleShiftEndTime","type":"datetime","required":true,}],
                              [{"title":"晚班开始时间","field":"EveningShiftStartTime","type":"datetime","required":true,}],
                              [{"title":"晚班结束时间","field":"EveningShiftEndTime","type":"datetime","required":true,}],
                              [{"title":"晚班 1 开始时间","field":"FirsteveningShiftStartTime","type":"datetime","required":true,}],
                              [{"title":"晚班 1 结束时间","field":"FirsteveningShiftEndTime","type":"datetime","required":true,}],
                              [{"title":"标定每件耗时","required":true,"field":"CalibratedTimePerPiece","type":"text"}],
                              [{"title":"实际每件耗时","required":true,"field":"ActualTimePerPiece","type":"text"}]];
    const searchFormFields = {};
    const searchFormOptions = [];
    const columns = [{field:'DailId',title:'主键',type:'int',width:110,hidden:true,readonly:true,require:true,align:'left'},
                       {field:'PlanCode',title:'计划编码',type:'string',width:110,require:true,align:'left'},
                       {field:'OrderCode',title:'订单编码',type:'string',bind:{ key:'订单编码',data:[]},width:110,require:true,align:'left'},
                       {field:'Line',title:'工艺线路',type:'string',bind:{ key:'工艺线路',data:[]},width:110,require:true,align:'left'},
                       {field:'TargetTime',title:'计划目标日期',type:'datetime',width:150,require:true,align:'left'},
                       {field:'Yield',title:'当日计划产量',type:'int',width:110,require:true,align:'left'},
                       {field:'Actual',title:'当日实际产量',type:'int',width:110,require:true,align:'left'},
                       {field:'Defective',title:'日次品数量',type:'int',width:110,require:true,align:'left'},
                       {field:'PassRate',title:'一次通过率',type:'decimal',width:110,require:true,align:'left'},
                       {field:'ActualTake',title:'每件实际耗时',type:'int',width:110,require:true,align:'left'},
                       {field:'Team',title:'班组',type:'string',bind:{ key:'班组',data:[]},width:110,hidden:true,require:true,align:'left'},
                       {field:'MorningshiftStarttim',title:'早班开始时间',type:'datetime',width:150,hidden:true,require:true,align:'left'},
                       {field:'MorningshiftEndtime',title:'早班结束时间',type:'datetime',width:150,hidden:true,require:true,align:'left'},
                       {field:'FirstmorningShiftStarttime',title:'早班 1 开始时间',type:'datetime',width:150,hidden:true,require:true,align:'left'},
                       {field:'FirstmorningShiftEndtime',title:'早班 1 结束时间',type:'datetime',width:150,hidden:true,require:true,align:'left'},
                       {field:'MiddleShiftStartTime',title:'中班开始时间',type:'datetime',width:150,hidden:true,require:true,align:'left'},
                       {field:'MiddleShiftEndTime',title:'中班结束时间',type:'datetime',width:150,hidden:true,require:true,align:'left'},
                       {field:'FirstmiddleShiftStartTim',title:'中班 1 开始时间',type:'datetime',width:150,hidden:true,require:true,align:'left'},
                       {field:'FirstmiddleShiftEndTime',title:'中班 1 结束时间',type:'datetime',width:150,hidden:true,require:true,align:'left'},
                       {field:'EveningShiftStartTime',title:'晚班开始时间',type:'datetime',width:150,hidden:true,require:true,align:'left'},
                       {field:'EveningShiftEndTime',title:'晚班结束时间',type:'datetime',width:150,hidden:true,require:true,align:'left'},
                       {field:'FirsteveningShiftStartTime',title:'晚班 1 开始时间',type:'datetime',width:150,hidden:true,require:true,align:'left'},
                       {field:'FirsteveningShiftEndTime',title:'晚班 1 结束时间',type:'datetime',width:150,hidden:true,require:true,align:'left'},
                       {field:'MorningshiftStarttim',title:'早班开始时间',type:'datetime',width:150,hidden:true,align:'left'},
                       {field:'MorningshiftEndtime',title:'早班结束时间',type:'datetime',width:150,hidden:true,align:'left'},
                       {field:'FirstmorningShiftStarttime',title:'早班 1 开始时间',type:'datetime',width:150,hidden:true,align:'left'},
                       {field:'FirstmorningShiftEndtime',title:'早班 1 结束时间',type:'datetime',width:150,hidden:true,align:'left'},
                       {field:'MiddleShiftStartTime',title:'中班开始时间',type:'datetime',width:150,hidden:true,align:'left'},
                       {field:'MiddleShiftEndTime',title:'中班结束时间',type:'datetime',width:150,hidden:true,align:'left'},
                       {field:'FirstmiddleShiftStartTim',title:'中班 1 开始时间',type:'datetime',width:150,hidden:true,align:'left'},
                       {field:'FirstmiddleShiftEndTime',title:'中班 1 结束时间',type:'datetime',width:150,hidden:true,align:'left'},
                       {field:'EveningShiftStartTime',title:'晚班开始时间',type:'datetime',width:150,hidden:true,align:'left'},
                       {field:'EveningShiftEndTime',title:'晚班结束时间',type:'datetime',width:150,hidden:true,align:'left'},
                       {field:'FirsteveningShiftStartTime',title:'晚班 1 开始时间',type:'datetime',width:150,hidden:true,align:'left'},
                       {field:'FirsteveningShiftEndTime',title:'晚班 1 结束时间',type:'datetime',width:150,hidden:true,align:'left'},
                       {field:'CalibratedTimePerPiece',title:'标定每件耗时',type:'int',width:110,hidden:true,require:true,align:'left'},
                       {field:'ActualTimePerPiece',title:'实际每件耗时',type:'int',width:110,hidden:true,require:true,align:'left'}];
    const detail ={columns:[]};
    const details = [];

    return {
        table,
        key,
        tableName,
        tableCNName,
        newTabEdit,
        editFormFields,
        editFormOptions,
        searchFormFields,
        searchFormOptions,
        columns,
        detail,
        details
    };
}